package com.usian.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.usian.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper extends BaseMapper<User> {
    //public List<User> findAll();

    @Select("select * from `user` where userName=#{userName} and `password`=#{password}")
    public List<User> findByUserName(@Param("userName") String userName, @Param("password") String password);
}
